//
// Decompiled by Jadx - 354ms
//
package s;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.t;
import androidx.constraintlayout.widget.i;
import androidx.recyclerview.widget.RecyclerView;
import cc.g;
import dq.b;
import fg.a;
import fi.e;
import fi.w;
import fi.x;
import fi.y;
import me.plusne.MainActivity;
import me.plusne.common.Http.Home;

public final class j {
    public final Activity a;
    public final g b;
    public final a c;
    public int d = -1;

    @SuppressLint({"NotifyDataSetChanged"})
    public j(MainActivity mainActivity) {
        this.a = mainActivity;
        w wVar = new w(mainActivity);
        wVar.bj(e.VIEW);
        View inflate = LayoutInflater.from(mainActivity).inflate(-2113142730, (ViewGroup) null, false);
        int i = 0x7f820063;
        LinearLayout linearLayout = (LinearLayout) i.cg(0x7f820063, inflate);
        if (linearLayout != null) {
            i = 0x7f820098;
            TextView textView = (TextView) i.cg(0x7f820098, inflate);
            if (textView != null) {
                i = 0x7f82009f;
                TextView textView2 = (TextView) i.cg(0x7f82009f, inflate);
                if (textView2 != null) {
                    i = 0x7f8200a0;
                    TextView textView3 = (TextView) i.cg(0x7f8200a0, inflate);
                    if (textView3 != null) {
                        LinearLayout linearLayout2 = (LinearLayout) inflate;
                        g gVar = new g(linearLayout2, linearLayout, textView, textView2, textView3);
                        this.b = gVar;
                        wVar.ar = linearLayout2;
                        textView3.setText("帮助文档");
                        wVar.bk();
                        RecyclerView a = x.a(mainActivity, r.e.a(mainActivity, 10.0f), r.e.a(mainActivity, 10.0f), r.e.a(mainActivity, 10.0f), r.e.a(mainActivity, 10.0f));
                        linearLayout2.addView((View) a, 1);
                        a.setItemAnimator((RecyclerView.m) null);
                        r.e.d(-2113535896, 20.0f, a);
                        a aVar = new a();
                        this.c = aVar;
                        y.e(mainActivity);
                        a.setAdapter(aVar);
                        t.c().j(((Home) b.b(Home.class)).queryHelp(-1).subscribeWith(new g(this, mainActivity)));
                        r.e.d(-2113535903, 25.0f, (TextView) gVar.d);
                        r.e.d(-2113535903, 25.0f, textView);
                        textView.setText("添加帮助文档");
                        textView.setOnClickListener(new fg.t(12, this, mainActivity));
                        ((TextView) gVar.d).setText("加载更多");
                        ((TextView) gVar.d).setOnClickListener(new fh.a(6, this));
                        return;
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
    }
}
